package com.skyworth.web.admin.store.service;

import com.google.gson.JsonObject;
import com.skyworth.web.admin.store.form.StoreForm;
import com.skyworth.web.admin.store.model.StoreModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by lxs on 2016/8/19.
 */
public interface StoreService {
	StoreModel addStore(StoreForm storeForm);
	StoreModel updateStore(StoreForm storeForm);
	void removeStore(long id);
	StoreModel findStore(long id);

	List<StoreModel> storeList(JsonObject params);
	Page<StoreModel> storePage(JsonObject params,Pageable pageable);
	Page<StoreModel> storePageByCompany(long companyId,Pageable pageable);
}
